<?php /* Smarty version Smarty-3.1.18, created on 2015-09-21 17:51:24
         compiled from "E:\www\gfour\ws\Admin\View\Vote\index.html" */ ?>
<?php /*%%SmartyHeaderCode:3208155ffd31cba9d19-69105841%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7cd23b327289ab997a629415df1678d36200c5b3' => 
    array (
      0 => 'E:\\www\\gfour\\ws\\Admin\\View\\Vote\\index.html',
      1 => 1440221348,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '3208155ffd31cba9d19-69105841',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    '_C' => 0,
    'ad_list' => 0,
    'ad' => 0,
    'user_list_page' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.18',
  'unifunc' => 'content_55ffd31cc4de32_07713523',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_55ffd31cc4de32_07713523')) {function content_55ffd31cc4de32_07713523($_smarty_tpl) {?><!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/amazeui.min.css"/>
		<link rel="stylesheet" type="text/css" href="<?php echo $_smarty_tpl->tpl_vars['_C']->value['hy_path'];?>
css/hy.admin.css"/>
	</head>
	<body>
		<div class="am-g">
			 <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

			 	
      <div class="am-u-md-6 am-cf">
        <div class="am-fl am-cf">
          <div class="am-btn-toolbar am-fl">
            <div class="am-btn-group am-btn-group-xs">
             <?php if ($_smarty_tpl->tpl_vars['_C']->value['DEBUG']==1) {?>
              <button data-id="addadpos" data-href="index.php?g=admin&m=vote&a=info" type="button" class="am-btn am-btn-default hy-js-href"><span class="am-icon-plus"></span> 新建投票</button>
              <!-- <button  type="button" data-action="del_group" class="am-btn am-btn-default hy-js-delall"><span class="am-icon-trash-o"></span> 删除</button> -->
              <?php }?>
            </div>
          </div>
        </div>
      </div>
      <div class="am-u-md-3 am-cf">
        <div class="am-fr">
        </div>
      </div>
      
      <div class="am-g">
      <div class="am-u-sm-12">
        <div class="am-form">
          <table class="am-table am-table-striped am-table-hover hy-table-main">
            <thead>
              <tr>
                <th class="table-check"><!-- <input class="hy-js-selectall" type="checkbox" /> --></th>
                <th class="table-title">标题</th>
				<th class="table-type">活动链接</th>
                <th class="table-type">参与人数</th>
				 <th class="table-type">状态</th>
            	<th class="table-type">活动时间</th>
                <th class="table-date">创建时间</th>
                <th class="table-set">操作</th>
              </tr>
          </thead>
          <tbody>
          	<?php  $_smarty_tpl->tpl_vars['ad'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['ad']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['ad_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['ad']->key => $_smarty_tpl->tpl_vars['ad']->value) {
$_smarty_tpl->tpl_vars['ad']->_loop = true;
?>
            <tr>
              <td><!-- <input class="hy-js-id" type="checkbox" value="<?php echo $_smarty_tpl->tpl_vars['ad']->value['id'];?>
"/> --></td>
              <td><?php echo $_smarty_tpl->tpl_vars['ad']->value['name'];?>
</td>
			  <td><?php echo $_smarty_tpl->tpl_vars['ad']->value['link'];?>
</td>
              <td><?php echo $_smarty_tpl->tpl_vars['ad']->value['joinnums'];?>
</td>
			  <td><?php if ($_smarty_tpl->tpl_vars['ad']->value['status']==1) {?> 开启 <?php } else { ?> 关闭 <?php }?></td>
			  <td><?php echo $_smarty_tpl->tpl_vars['ad']->value['dotime1'];?>
 至 <?php echo $_smarty_tpl->tpl_vars['ad']->value['dotime2'];?>
</td>
              <td><?php echo $_smarty_tpl->tpl_vars['ad']->value['addtime'];?>
</td>
              <td>
                <div class="am-btn-toolbar">
                  <div class="am-btn-group am-btn-group-xs">
                   
                    <button data-id="adcontent_<?php echo $_smarty_tpl->tpl_vars['ad']->value['id'];?>
" data-title="<?php echo $_smarty_tpl->tpl_vars['ad']->value['name'];?>
" data-href="index.php?g=admin&m=vote&a=info&id=<?php echo $_smarty_tpl->tpl_vars['ad']->value['id'];?>
" class="am-btn am-btn-default am-btn-xs hy-js-href"><span class="am-icon-copy"></span> 内容</button>
                     <?php if ($_smarty_tpl->tpl_vars['_C']->value['DEBUG']==1) {?>
                    <button data-param ="{ url:'index.php?g=admin&m=vote&a=del&id=<?php echo $_smarty_tpl->tpl_vars['ad']->value['id'];?>
',hide:4}" class="am-btn am-btn-default am-btn-xs am-text-danger hy-js-del"><span class="am-icon-trash-o"></span> 删除</button>
                 <?php }?>
                   </div>
                </div>
              </td>
            </tr>
             <?php } ?> 
          </tbody>
        </table>
          <div class="am-cf">

  <div class="am-fr">
  <?php echo $_smarty_tpl->tpl_vars['user_list_page']->value;?>

  </div>
</div>
          <hr />
      
        </div>
      </div>

    </div>
    </div>
   <?php echo $_smarty_tpl->getSubTemplate ('../Common/hy_footer.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, 0, null, array(), 0);?>

	</body>
</html>
<?php }} ?>
